#include "fx_parameq.h"
#include "ui_fx_parameq.h"

fx_parameq::fx_parameq(QWidget *parent) :
    fx_basic(parent),
    ui(new Ui::fx_parameq)
{
    ui->setupUi(this);
}

fx_parameq::~fx_parameq()
{
    delete ui;
}

void fx_parameq::center(int value)
{
    ui->label_4->setText(QString::number(value) + " Hz");
}

void fx_parameq::band(int value)
{
    ui->label_5->setText(QString::number(value));
}

void fx_parameq::gain(int value)
{
    ui->label_6->setText(QString::number(value) + " dB");
}

void fx_parameq::addFX()
{
    BASS_DX8_PARAMEQ* result = new BASS_DX8_PARAMEQ();
    result->fCenter = ui->horizontalSlider->value();
    result->fBandwidth = ui->horizontalSlider_2->value();
    result->fGain = ui->horizontalSlider_3->value();
    emit apply(BASS_FX_DX8_PARAMEQ, result);
}
